package co.za.itweb.itwebpro;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;

public class VideoClass extends Activity{
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		Bundle extras = getIntent().getExtras();
		String ytID = extras.getString("videoID");
		
		
  		 Intent lVideoIntent = new Intent(null, Uri.parse("ytv://"+ytID), VideoClass.this, OpenYouTubePlayerActivity.class);
  		 lVideoIntent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP);
  		
         startActivity(lVideoIntent);
         finish();
	}

}
